package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.storage.model.params.StorageStockParam;
import cn.stylefeng.guns.modular.tool.entity.ToolStorageStock;
import cn.stylefeng.guns.modular.tool.model.params.ToolStorageStockParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolStorageStockResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 云仓库存表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-04-01
 */
public interface ToolStorageStockService extends IService<ToolStorageStock> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-04-01
     */
    void add(ToolStorageStockParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-04-01
     */
    void delete(ToolStorageStockParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-04-01
     */
    void update(ToolStorageStockParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-01
     */
    ToolStorageStockResult findBySpec(ToolStorageStockParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-01
     */
    List<ToolStorageStockResult> findListBySpec(ToolStorageStockParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-04-01
     */
     LayuiPageInfo findPageBySpec(ToolStorageStockParam param,String condition,Long operateId);

	 /**
	  * 批量保存list
	  * @param
	  */
	 boolean batchAddList(List<ToolStorageStockParam> ssPlist);

 	ResponseData batchImport(String fileName, MultipartFile file, ToolStorageStockParam param,ResponseData data) throws Exception;

	void deleteBySpec(ToolStorageStockParam deleteStockParam);

	ToolStorageStockResult findTotalBySpec(ToolStorageStockParam toolStorageStockParam);

	List<ToolStorageStockResult> findGoodsListBySpec(ToolStorageStockParam toolStorageStockParam);

}
